package com.huzz.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
* 系统用户 查询Model
*
* @author 童年的纸飞机
* @since 2023-06-06 20:05
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Builder
@ApiModel("系统用户 查询Model Args")
public class SysUserQueryModel implements Serializable {

    @ApiModelProperty(value = "ID数组")
	private Integer[] ids;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "性别(男:1,女0)")
    private Integer sex;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "出生年月")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birth;

    @ApiModelProperty(value = "部门id")
    private Integer[] departmentIds;

    @ApiModelProperty(value = "状态(0禁用, 1开启)")
    private Integer status;

    @ApiModelProperty(value = "按时间区间查询: ['开始时间', '结束时间']")
    private String[] timeInterval;
}